package org.apache.osgimaker.analyse.algorithm.renderer;


/**
 * XML renderer of an {@link AtomicVertex} with 
 * {@link ClassAttributes}.
 * 
 */
public class XMLClassRenderer extends XMLAtomicVertexRenderer 
{
  protected String getElement()
  {
    return "class";
  }

  protected String getRefElement()
  {
    return "classRef";
  }

  protected AtomicVertexRenderer getVertexRenderer()
  {
    return new TemplateBasedClassRenderer("    <" + getElement()
            + " name=\"{0}\" sources=\"{9}\" type=\"{1}\" innerClass=\"{3}\""
            + " size=\"{2}\" usedBy=\"{4}\" usesInternal=\"{5}\""
            + " usesExternal=\"{6}\" layer=\"{7}\" cycle=\"{8}\">\n");
  }
} //class